package com.gujia.designpattern.adapter.interf;

import com.gujia.designpattern.adapter.GBTwoPlug;

public class TwoPlugAdapter implements ThreePlug {

    private GBTwoPlug plug;

    public TwoPlugAdapter(GBTwoPlug plug) {
        this.plug = plug;
    }

    @Override
    public void powerWhreeThree() {
        System.out.println("通过转化");
        plug.powerWithTwo();
    }
}
